gpt4 book ai didi

我的 ASP.NET CSS 上的 Jquery CSS 'Overlapping'

转载 作者:太空宇宙 更新时间:2023-11-04 13:39:14 25 4
gpt4 key购买 nike

基本上在我的 DesignBrowser 中,我的 JQuery Slider 的 CSS 使我的 ASP.NET 按钮以这种方式出现,即使按钮的实际 CSS 出现在后面和里面该部分应如下图所示。 CSS Problem

我是否引用了 ASP 方面的错误,因为页面功能应该如何 它只是它的样式 我可能弄错了或者可能有一些我不应该拥有的东西,所以我的问题是你能想到任何错误吗这可能会导致我手头的问题?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="MachineSweepLite.aspx.vb" Inherits="Production_MachineSweepLite" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">
<title></title>
<link href="jquery.mobile-1.4.2.css" rel="stylesheet" />
<link id="stylesheet" href="ControlStyle.css" rel="stylesheet" type="text/css" runat="server" />
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'> </script>
<script type='text/javascript' src='jquery.mobile-1.4.2.js' ></script>
<meta name="viewport" content="width=device-width; initial-scale = 1.0; maximum-scale=1.0; user-scalable=no" />
</head>
<body background="../icons/Building-Confidence-logo.jpg" onload="init();">
<form id="form1" runat="server" class="formbackground">
<h1 runat="server" id="pageTitle"> </h1>
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"
AutoGenerateColumns="False" BackColor="White" Width="100%"
style="font-size: xx-large">
<AlternatingRowStyle BackColor="#CCFFFF" />
<Columns>
<asp:BoundField DataField="Questions" HeaderText="Questions" SortExpression="Questions" />
<asp:TemplateField ItemStyle-Width="15%">
<ItemTemplate>
<div style="height: 50px; float: left; width: 27%;">
<%-- <label for="quesTion"></label>--%>
<select name="quesTion" id="quesTion" data-role="slider" runat="server">
<option value="Yes" selected="selected">Yes</option>
<option value="No">No</option>
</select>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:saleConnectionString %>" SelectCommand="Select AreaID, QuestionID, Questions From (Select AreaID, Question1,
Question2,
Question3,
Question4,
Question5,
Question6,
Question7
From MachineSweepQuestions) x
UNPIVOT
(
Questions
For QuestionID in (Question1, Question2, Question3, Question4, Question5, Question6,Question7)
) unpiv Where AreaID = @AreaID">
<SelectParameters>
<asp:QueryStringParameter Name="AreaID" QueryStringField="AreaID" />
</SelectParameters>
</asp:SqlDataSource>
<div style="width: 300px">
<asp:Button ID="backBtn" runat="server" Text="Back" cssclass="classname"
Height="50px" Width="90px" />
&nbsp;<asp:Button ID="checkBtn" runat="server" Text="Complete Check" cssclass="classname"
Height="50px" Width="149px" />
</div>
</form>
</body>
</html>

最佳答案

您在页面上引用了 JQuery Mobile,它将设置自己的样式。您可以在按钮上设置主题样本以设置一种默认移动样式,http://demos.jquerymobile.com/1.2.0/docs/api/themes.html

或者您可以使用主题滚轮创建自定义主题。 http://themeroller.jquerymobile.com/

另一种选择是覆盖样式,这可能很棘手。这是一个讨论问题以及如何覆盖的问题。 StackOverflow Overriding JQuery Mobile CSS

关于我的 ASP.NET CSS 上的 Jquery CSS 'Overlapping',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22812880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com