如何为嵌套在div中的链接加下划线?

时间:2017-07-10 19:47:39

标签: html css hyperlink

如何在本规范中强调链接? 链接我的意思是这一个:

[ERROR] GooglePlayServicesUtil: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
..
[ERROR] TiApplication: (main) [124,124] Sending event: exception on thread: main msg:java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;; Titanium 6.1.1,2017/06/26 16:09,undefined
[ERROR] TiApplication: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/R$string;

但如果你将鼠标悬停在代码中的第一个div上,则必须加下划线。

<a href="/Censored">To the Censor <i class="uk-icon-angle-right arrowhover" style="padding-left:7px"></i>

我使用此代码将图标5px移动到右侧(也许这有帮助)

<li class="uk-active">
 <div class="uk-panel uk-text-left">
    <a class="uk-position-cover uk-position-z-index" href="/censored"></a>
  <div class="uk-text-center uk-panel-teaser"><img alt="Censored" src="https://censored.jpg"></div>
  <h3 class="uk-h5 uk-margin-top-remove">
    <a class="uk-link-reset" href="/censor">Censored</a> 
  </h3>
    <div class="uk-margin">Censored</div>
  <p>
    <a href="/Censored">To the Censor <i class="uk-icon-angle-right arrowhover" style="padding-left:7px"></i>
    </a>
  </p>
 </div>
</li>

我希望你们能帮助我:(

2 个答案:

答案 0 :(得分:0)

您可以使用CSS代码实现下划线效果:

.uk-panel:hover p a {
    text-decoration: underline;
}

text-decoration元素悬停在<a>元素内时,<p>属性将应用于<div id="complete-box">个元素内的所有@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); mainModel = (MainModel)getIntent().getSerializableExtra("serialized_data"); createVideoFolder(); mChronometer = (Chronometer) findViewById(R.id.chronometer); mTextureView = (TextureView) findViewById(R.id.textureView); mRecordButton = (Button) findViewById(R.id.videoButton); mRecordButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (mIsRecording || mIsTimelapse) { mChronometer.stop(); mChronometer.setVisibility(View.INVISIBLE); mIsRecording = false; mIsTimelapse = false; // Starting the preview prior to stopping recording which should hopefully // resolve issues being seen in Samsung devices. startPreview(); mMediaRecorder.stop(); mMediaRecorder.reset(); Intent mediaStoreUpdateIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE); mediaStoreUpdateIntent.setData(Uri.fromFile(new File(mVideoFileName))); sendBroadcast(mediaStoreUpdateIntent); goNext(); } else { mIsRecording = true; checkWriteStoragePermission(); } } }); mIsRecording = true; } 元素。

答案 1 :(得分:0)

尝试在链接中添加一个类并为其加下划线:

<a class = "underLine"></a>

uk-panel:hover underLine{
     text-decoration:underline;
  }