- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的标题链接不起作用。我厌倦了改变所有的 z-index 但没有运气。我还尝试更改 href=. .到 href=,仍然没有运气。还尝试删除 APdiv,没有任何区别。
我认识到的另一件事是我无法突出显示标题中的文本。
标题
<div class='container'>
<div class='five columns logo'></div>
<div class='eleven columns'>
<div id="apDiv2"><img src="images/misc/logo.jpg" width="144" height="38"></div>
<ul class='mainMenu'>
<li><a href='index.php' title='Home' style="color: #FFF">Home</a></li>
<li><a href='about_us.php' title='About us' style="color: #FFF">About us</a></li>
<li><a href='#' title='Pricing' style="color: #FFF">Pricing</a></li>
<li><a href='#' title='Blog' style="color: #FFF">Blog</a></li>
<li><a href='#' title='Portfolio' style="color: #FFF">Portfolio</a></li>
<li><a href='#' title='Contact' style="color: #FFF">Contact</a></li>
</ul>
</div>
</div>
CSS
body {
margin:0;
padding: 0;
font-family: "Open Sans", Arial, sans-serif;
}
body {
background: #fff;
color: #585858;
font-size: 24px;
}
/*
* Paragraf
*/
p {font-size: 80%; font-weight: 300; color: #333; line-height: 22px;}
/*
* Link
*/
a, a:visited {text-decoration: none; color: #585858;}
/*
* Headings
*/
h1 {font-size: 1.8em; line-height: 1.23em;}
h2 {font-size: 22px;}
h3 {
font-size: 24px;
font-weight: 400;
padding: 20px 0;
font-family: 'Crete Round', Georgia, serif ;
}
h4 {font-size: 18px;}
h5 {font-size: 16px; padding-bottom: 10px;}
h6 {font-size: 14px; padding-bottom: 10px; font-weight: bold;}
h5 b {font-weight: bold;}
/*
* Lista NIE uporzadkowana UL
*/
ul {font-size: 14px; margin: 7px 0; padding-left: 10px;}
ul li {margin-bottom: 5px;}
/*
* divs random
*/
.container .clear, body .clear {width: 100%; float: left; clear: both; margin: 20px 0;}
.one-third {text-align: center;}
/*
* Header
*/
header nav {
width: 100%;
float: left;
margin: 0;
padding: 15px 0 20px;
background: #000;
position: reletive;
z-index: 1;
box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
-moz-box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
-webkit-box-shadow: 0 1px 2px 0 rgba(0,0,0,.3);
font-family: "Segoe UI";
}
header .slogan {float:left;padding: 80px 0;}
header .slogan a.green {
margin: 13px 0;
padding: 10px 28px;
}
header p {color: #fff;}
header h1, header h2, header h4 {width: 100%; float: left; clear: both; text-align: left; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.2); font-weight: 600;}
header h1 {font-size: 3em; margin-bottom: 10px;}
header h2 {font-size: 2em;}
header h4 {font-weight: normal; margin-bottom: 10px;}
/*
* Logo
*/
.logo a {color: #444; text-decoration: none; line-height: 20px;}
.logo a:hover {color: #FF6A00;}
/*
* Menu
*/
ul.mainMenu {
margin: 0;
padding: 0;
float: right;
height: 10px;
}
ul.mainMenu li {display: inline; float: left; margin: 2px 10px;}
ul.mainMenu li a {font-size: 13px; color: #444; text-decoration: none;}
ul.mainMenu li a:hover {
color: #F3FAB6;
-webkit-transition: color .12s ease-in-out;
-moz-transition: color .12s ease-in-out;
-ms-transition: color .12s ease-in-out;
-o-transition: color .12s ease-in-out;
transition: color .12s ease-in-out;
}
/*
* Orange
*/
.orange {width: 100%; float: left; clear: both; background: #ff6a00; margin: 50px 0; padding: 45px 0; color: #fff; text-align: center; position: relative;z-index: 1;}
.orange h2 {width: 100%; margin: 20px 0 50px; text-align: center; text-shadow: none;}
.orange p {width: 600px; margin: 0 auto 30px; color: #fff; text-align: center;}
.orange a.dalej {display: block; width: 185px; background: #df4a00; color: #fff; margin: 0 auto 20px; padding: 10px 20px; font-size: 12px; text-transform: uppercase;
border-radius: 30px;
-moz-border-radius: 30px;
-webkit-border-radius: 30px;
}
.orange a.dalej:hover {background: #fff; color: #ff6a00;}
/*
* Gray
*/
.gray {width: 100%; float: left; clear: both; background: #f6f6f6; margin: 50px 0; padding: 45px 0; z-index: 1;}
/*
* Form, input, label, textarea
*/
.form h3, .form p {text-align: center;}
form {width: 500px; margin: 30px auto; text-align: center;}
input, label, textarea {width: 500px; float: left; margin: 0; padding: 0;}
label {font-size: 12px; text-transform: uppercase; font-weight: 300; margin-bottom: 7px;}
input {margin-bottom: 20px; padding: 7px 0; text-align: center;}
input, textarea {border: 1px solid #ddd; outline: none;}
input:focus, textarea:focus {border-color: #b6b6b6;}
textarea {width: 480px; padding: 7px 10px;}
input.error, textarea.error {border-color: #cc4847;}
input[type='submit'] {width: 502px; padding: 12px 0; font-size: 16px; border: none; background: #eee; color: #aaa; cursor: pointer;}
input[type='submit']:hover {background: #1EBA6B; color: #fff;}
/*
* Focus
*/
.focus h3 {margin-bottom: 15px;}
.focus h4, .focus h3 {float: left; width: 100%; text-align: center; margin-bottom: 7px;}
.focus p {text-align: center;}
/*
* Gallery
*/
.gallery a {width: 140px; height: 100px; overflow: hidden; float: left; margin: 5px; }
.gallery a img {height: 95px;}
/*
* a#Top
*/
a#top {display: none; width: 7px; height: 17px; padding: 5px; position: fixed; bottom: 50px; right: 60px; z-index: 1; color: #fff; background: #ff6a00; font-size: 14px; font-weight: 300;}
/*
* BUTTONS
*/
.button {float: left; color: #fff; text-transform: uppercase; text-shadow: 0 1px 1px rgba(0,0,0,.2);
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
-webkit-transition: background .12s ease-in-out;
-moz-transition: background .12s ease-in-out;
-ms-transition: background .12s ease-in-out;
-o-transition: background .12s ease-in-out;
transition: background .12s ease-in-out;
}
.medium {font-size: 12px; margin: 5px 0; padding: 9px 14px 8px;}
a.green {background: #45C491; color: #fff;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.2), 0 1px 0 0 rgba(255,255,255,.2) inset;
-moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,.2), 0 1px 0 0 rgba(255,255,255,.2) inset;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.2), 0 1px 0 0 rgba(255,255,255,.2) inset;
}
a.green:hover {background: #36ae7e}
/*
* Footer
*/
footer {width: 100%; float: left; margin: 20px 0 0; padding: 30px 0; background: #333;}
footer h5 {color: #ccc;}
footer p {color: #aaa; line-height: 15px; font-size: 12px; margin-bottom: 7px;}
footer a {color: #ddd;}
footer a:hover {color: #ff6a00;}
footer .social a {float: left; margin-right: 10px;}
footer .social a img {width: 35px; opacity: 0.4;}
footer .social a:hover img {opacity: 1;}
/* -------------------
* RESPOSIVE ELEMENTS
* ------------------- */
@media only screen and (max-width: 767px) and (min-width: 480px) {
header h2 {display: none;}
header .slogan {padding-top: 40px;}
nav .container .logo {margin-bottom: 20px; text-align: center;}
.orange p {width: 400px;}
form, label, input {width: 400px;}
input[type="submit"] {width: 402px;}
textarea {width: 380px;}
.container .one-third.column, .container .eight.columns, .container .four.columns {margin-bottom: 40px;}
}
@media only screen and (max-width: 767px) {
header {height: 310px;}
header h2, header .six.columns {display: none;}
header .slogan {padding: 30px 0;}
nav .container .logo {margin-bottom: 20px; text-align: center;}
.orange p {width: 200px;}
form, label, input {width: 300px;}
input[type="submit"] {width: 302px;}
textarea {width: 280px;}
.container .one-third.column, .container .eight.columns, .container .four.columns {margin-bottom: 40px;}
}
最佳答案
它们正在工作,但问题是您看不到它们,因为它们与背景颜色相同。
放
body {
background: #000;
}
您将看到工作链接。
关于html - href链接不可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20918837/
当点击content 时,我想触发我的alert。我的 content 中可以有任意数量的子元素,所以我不想对每个元素都进行硬编码。我想也许我可以监听对该父元素的点击,然后每次点击子元素都会触发我的操
对于 Mac 应用程序,我想检测应用程序中的用户事件,因此我可以定期让 Web 服务知道用户在端点上仍然处于事件状态。 在 Cocoa Touch 中,我会覆盖 UIApplication 的 sen
第一次在这里发帖,但天知道我一直使用这个网站来搜索问题 :P 好吧,我现在遇到了自己的问题,我似乎无法轻松地在 Google 上搜索,在玩了大约 2 小时后,我终于决定发布一个问题,看看你们是怎么想的
Angular 触控 ngTouch导致在触摸释放时发生点击。 有没有办法让点击发生在触摸开始? fast-click下面的指令似乎可以在触摸屏上执行我想要的操作,但它不适用于鼠标点击。 myApp.
1) 如果我有这个,当我点击子 Container 时它不会打印'tap': Container( color: Colors.red, child: GestureDetector(
我简直要发疯了,只是想从 jQuery 中的事件中解除 onclick 处理程序的绑定(bind),以便稍后可以将其绑定(bind)到另一个函数。 我已将代码隔离在测试页中,因此除了核心之外什么都没有
我有一个有趣的情况。我需要触发实时点击,因为简单的点击不起作用。 这就是我所拥有的: $('.text').trigger('click'); 但我需要这样的东西: $('.text').trigge
这是我的作业,这是我第一次做表单验证。以下代码分别是我的HTML代码和JavaScript代码。 HTML 代码: First N
正如标题所示,如何获取 Magento 中特定产品的浏览量/点击量/展示次数。欢迎任何帮助。 最佳答案 这个简单的示例将为您提供在您指定的日期+其查看次数之间查看过的产品列表: $fromDate =
我正在创建一个应用程序,但在其中遇到错误。我想在按钮上添加 OnclickListner。该按钮位于 fragment 类上。从这个 fragment 类我想继续另一个类。代码如下: fragment
我在数组中有一些值。首先,我想在 View 中显示该数组的前两个值,接下来我想在某些按钮单击操作后显示剩余的值,并将数组索引增加 1。例如:一次点击显示第三个值,然后另一次点击显示第四个值。 我怎样才
在下面的代码片段中,如果在链接上执行“CMD+CLICK”,则不会显示 alert('CMD')。这是为什么? 我想在用户按下 CMD 按钮(或 Windows 上的 CTRL 键)+单击 href
我希望在单击链接时开始加载一些内容。在单击该链接之前,我不希望它使用任何带宽。另外如何实现几乎所有灯箱中都能看到的旋转光标动画? 最佳答案 使用$.ajax()函数动态加载内容。 对于动画,请找到一个
我有如下的 DOM: users 当用户点击按钮时,它会将新的“td”附加到“tr”。它运作良好。问题:单击“a”我想打开两个链接。最好的方法是首先将当前页面重定向到另一个页面,然后
这是我正在尝试做的.. 点击按钮会显示一个随机数组项。 数组项只能显示一次。 目前我已经将代码设置为: 点击随机数组项显示。 按钮点击继续循环,没有结束。 按钮点击多次显示元素。 这是代码的链接 ht
我想创建...基本上是一个宏程序。点击记录后,它会记录所有鼠标(可能最终是键盘)事件。然后你可以保存,然后播放,鼠标应该移动并点击在相同的地方当你录制它时它会发生。 我知道如何获取全局鼠标事件,但我不
我有一个关于将 onClick 添加到 ListView 的问题,我已经尝试尽可能多地遵循 Android NotePad 教程,但是对于我的布局我不太明白如何添加它。 这是 Activity 类,它
我正在使用一个网站以表格的形式显示信息。用户可以单击表格中的行来更改它们的颜色,我还有一个按钮允许用户暂停页面的刷新,这样就不会添加新信息。这两个功能都适用于桌面,但不适用于触摸屏。我的第一个想法是触
所以我的网站上有一个正常的链接,我想为它添加跟踪。我可以设想很多方法来做到这一点,但我已经确定通过编写一个小的 jquery 函数并在我的标签中放置一个小片段来实现这一点非常简单: click me!
我正在尝试使我的图片按钮看起来不错。我尝试了几种不同的方法,但它们看起来都不对。这是一个圆形图像,我想让它看起来像是可以按下的。这是我到目前为止所得到的。 android:textAppearance
我是一名优秀的程序员,十分优秀!